const WebSocket = require('ws')
const wss = new WebSocket.Server({
    port: 3000
})
wss.on('connection', (ws) => {
    ws.on('message', (message) => {
        console.log(message.toString());
        setInterval(() => {
            ws.send('hello client')
        }, 2000)

    })
})


